<include file="public@header" />
<style>
	.controls{ color:#999}
	.minwidth{width:58px !important}
	div[name='d_gaiban'],div[name='d_al']{ width:100%;float:left;}
	.form-horizontal .control-group1{}
	.inputw{width:80px !important;}
	.marleft{margin-left: 90px !important;}
</style>
</head>
<body>
	<php>$type=''</php>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('Rock/product')}">石材产品库</a></li>
			<li><a href="{:url('Rock/producttypeadd')}">新增石材产品</a></li>
			<li class="active"><a href="{:url('Rock/productjd')}">新增节地墓</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form" action="{:url('Rock/productjdadd_post')}" style="width:100%; float:left">
			<fieldset>
				<input type="hidden" name="pro_type" value="4">
				<div class="p_title">
					<span class="span_title">基础信息</span>
				</div>
				<div class="control-group1-p">
					<div class="form-group"  style="float:left;margin-bottom: -20px;" >
						<label class="control-label">状态:</label>
						<div class="col-md-2">
							<select class="form-control" name="pro_status" style="width: 136px">
								<option value="1">启用</option>
								<option value="2">停用</option>
							</select>
						</div>
					</div>
					<div class="form-group" >
						<label class="control-label">在产状态:</label>
						<div class="col-md-2">
							<select class="form-control" name="if_create" style="width: 136px">
								<option value="1">在产</option>
								<option value="2">停产</option>
							</select>
						</div>
					</div>
					<div class="form-group"  >
						<label class="control-label">产品名称:</label>
						<div class="col-md-2" style="width: 12%">
							<input type="text" class="form-control" name="pro_name" required value="">
						</div>
						<label class="control-label inputw" >规制:</label>
						<div class="col-md-2" style="width: 8%">
							<select class="form-control" name="regulation"style="width: 100px">
								<option value="1">单穴</option>
								<option value="2">双穴</option>
								<option value="3">三穴</option>
							</select>
						</div>
						<label class="control-label inputw">碑型:</label>
						<div class="col-md-2" style="width: 8%">
							<select class="form-control" name="stele_type"style="width: 120px">
								<option value="5">格位</option>
							</select>
						</div>
						<label class="control-label inputw">空间宽度:</label>
						<div class="col-md-2" style="width: 11%">
							<input type="text" class="form-control" style="width: 110px"  name="pro_length" required value=""> mm
						</div>
						<label class="control-label inputw" >空间深度:</label>
						<div class="col-md-2" style="width: 11%">
							<input type="text" class="form-control" style="width: 110px"  name="pro_width" required value=""> mm
						</div>
						<label class="control-label inputw"  >空间高度:</label>
						<div class="col-md-2" style="width: 11%">
							<input type="text" class="form-control" style="width: 110px"  name="pro_height" required value=""> mm
						</div>
					</div>
					<div class="form-group" >
						<label class="control-label">产品图</label>
						<div class="col-md-2" style="width: 24.1%">
							<input type="hidden" name="pro_photo" id="thumb" value="">
							<a href="javascript:uploadOneImage('图片上传','#thumb');">
								<h5 class="btn btn-primary">上传</h5>
								<img src="" id="thumb-preview" width="135" style="cursor: hand"/>
							</a>
							<input type="button" class="btn btn-sm" onclick="$('#thumb-preview').attr('src','');$('#thumb').val('');return false;" value="取消图片">
						</div>
						<label class="control-label inputw" >价格:</label>
						<div class="col-md-2" style="width: 11%">
							<input type="text" class="form-control" style="width: 110px" name="pro_price" required
								   value="">
						</div>
					</div>
				</div>
                <div class="p_title">
                	<span class="span_title">墓碑信息</span>
                </div>
                <div class="control-group1-p">
					<div class="form-group">
						<label class="control-label" style="width: 125px;"></label>
						<div class="col-md-2">
							<input type="text" class="form-control minwidth" disabled value="宽">
							<input type="text" class="form-control minwidth" disabled value="高">
							<input type="text" class="form-control minwidth" disabled value="厚">
						</div>
					</div>
					<div class="form-group part_base" style="margin-bottom: -15px !important;" name="base">
						<div class="control-group1" style="width: 22%">
							<label class="control-label">上下隔板:</label>
							<input type="hidden" name="iname[]" value="上下隔板" >
							<input type="hidden" name="isort[]" value="1" >
							<div class="controls">
								<input type="text" class="form-control minwidth iwidth" name="iwidth[]" placeholder="宽"  value="1">
								<input type="text" class="form-control minwidth iheight" name="iheight[]" placeholder="高"  value="1">
								<input type="text" class="form-control minwidth ithick" name="ithick[]" placeholder="厚"  value="1"> mm
							</div>
						</div>
						<div class="control-group1" style="width: 20%">
							<label class="control-label">材料种类:</label>
							<div class="controls">
								<select class="form-control icate" name="icate[]">
									<option value=''>请选择材料种类</option>
									<volist name="cate_type" id="vo">
										<option value="{$vo.id}" data-stuff_money="{$vo.stuff_money}">{$vo.name}</option>
									</volist>
								</select>
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">数量:</label>
							<div class="controls marleft">
								<input type="text" class="form-control" name="inumber[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">材料价格:</label>
							<div class="controls marleft">
								<input type="text" class="form-control imaterial_price" name="imaterial_price[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">维修单价:</label>
							<div class="controls marleft">
								<input type="text" class="form-control" name="irepair_price[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1"  style="width:12%">
							<label class="control-label inputw">更换单价:</label>
							<div class="controls marleft">
								<input type="text" class="form-control ichange_price" name="ichange_price[]" style="width:100px;" value="1">
							</div>
						</div>
					</div>
					<div class="form-group part_base" style="margin-bottom: -15px !important;" name="base">
						<div class="control-group1" style="width: 22%">
							<label class="control-label">左右隔板:</label>
							<input type="hidden" name="iname[]" value="左右隔板" >
							<input type="hidden" name="isort[]" value="2" >
							<div class="controls">
								<input type="text" class="form-control minwidth iwidth" name="iwidth[]" placeholder="宽"  value="1">
								<input type="text" class="form-control minwidth iheight" name="iheight[]" placeholder="高"  value="1">
								<input type="text" class="form-control minwidth ithick" name="ithick[]" placeholder="厚"  value="1"> mm
							</div>
						</div>
						<div class="control-group1" style="width: 20%">
							<label class="control-label">材料种类:</label>
							<div class="controls">
								<select class="form-control icate" name="icate[]">
									<option value=''>请选择材料种类</option>
									<volist name="cate_type" id="vo">
										<option value="{$vo.id}" data-stuff_money="{$vo.stuff_money}">{$vo.name}</option>
									</volist>
								</select>
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">数量:</label>
							<div class="controls marleft">
								<input type="text" class="form-control" name="inumber[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">材料价格:</label>
							<div class="controls marleft">
								<input type="text" class="form-control imaterial_price" name="imaterial_price[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">维修单价:</label>
							<div class="controls marleft">
								<input type="text" class="form-control" name="irepair_price[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1"  style="width:12%">
							<label class="control-label inputw">更换单价:</label>
							<div class="controls marleft">
								<input type="text" class="form-control ichange_price" name="ichange_price[]" style="width:100px;" value="1">
							</div>
						</div>
					</div>
					<div class="form-group part_base" style="margin-bottom: -15px !important;" name="base">
						<div class="control-group1" style="width: 22%">
							<label class="control-label">后隔板:</label>
							<input type="hidden" name="iname[]" value="后隔板" >
							<input type="hidden" name="isort[]" value="3" >
							<div class="controls">
								<input type="text" class="form-control minwidth iwidth" name="iwidth[]" placeholder="宽"  value="1">
								<input type="text" class="form-control minwidth iheight" name="iheight[]" placeholder="高"  value="1">
								<input type="text" class="form-control minwidth ithick" name="ithick[]" placeholder="厚"  value="1"> mm
							</div>
						</div>
						<div class="control-group1" style="width: 20%">
							<label class="control-label">材料种类:</label>
							<div class="controls">
								<select class="form-control icate" name="icate[]">
									<option value=''>请选择材料种类</option>
									<volist name="cate_type" id="vo">
										<option value="{$vo.id}" data-stuff_money="{$vo.stuff_money}">{$vo.name}</option>
									</volist>
								</select>
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">数量:</label>
							<div class="controls marleft">
								<input type="text" class="form-control" name="inumber[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">材料价格:</label>
							<div class="controls marleft">
								<input type="text" class="form-control imaterial_price" name="imaterial_price[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">维修单价:</label>
							<div class="controls marleft">
								<input type="text" class="form-control" name="irepair_price[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1"  style="width:12%">
							<label class="control-label inputw">更换单价:</label>
							<div class="controls marleft">
								<input type="text" class="form-control ichange_price" name="ichange_price[]" style="width:100px;" value="1">
							</div>
						</div>
					</div>
					<div class="form-group part_base" style="margin-bottom: -15px !important;" name="base">
						<div class="control-group1" style="width: 22%">
							<label class="control-label">装饰门:</label>
							<input type="hidden" name="iname[]" value="装饰门" >
							<input type="hidden" name="isort[]" value="4" >
							<div class="controls">
								<input type="text" class="form-control minwidth iwidth" name="iwidth[]" placeholder="宽"  value="1">
								<input type="text" class="form-control minwidth iheight" name="iheight[]" placeholder="高"  value="1">
								<input type="text" class="form-control minwidth ithick" name="ithick[]" placeholder="厚"  value="1"> mm
							</div>
						</div>
						<div class="control-group1" style="width: 20%">
							<label class="control-label">材料种类:</label>
							<div class="controls">
								<select class="form-control icate" name="icate[]">
									<option value=''>请选择材料种类</option>
									<volist name="cate_type" id="vo">
										<option value="{$vo.id}" data-stuff_money="{$vo.stuff_money}">{$vo.name}</option>
									</volist>
								</select>
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">数量:</label>
							<div class="controls marleft">
								<input type="text" class="form-control" name="inumber[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">材料价格:</label>
							<div class="controls marleft">
								<input type="text" class="form-control imaterial_price" name="imaterial_price[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">维修单价:</label>
							<div class="controls marleft">
								<input type="text" class="form-control" name="irepair_price[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1"  style="width:12%">
							<label class="control-label inputw">更换单价:</label>
							<div class="controls marleft">
								<input type="text" class="form-control ichange_price" name="ichange_price[]" style="width:100px;" value="1">
							</div>
						</div>
					</div>
					<div class="form-group part_base" style="margin-bottom: -15px !important;" name="base">
						<div class="control-group1" style="width: 22%">
							<label class="control-label">上下内装饰面:</label>
							<input type="hidden" name="iname[]" value="上下内装饰面" >
							<input type="hidden" name="isort[]" value="5" >
							<div class="controls">
								<input type="text" class="form-control minwidth iwidth" name="iwidth[]" placeholder="宽"  value="1">
								<input type="text" class="form-control minwidth iheight" name="iheight[]" placeholder="高"  value="1">
								<input type="text" class="form-control minwidth ithick" name="ithick[]" placeholder="厚"  value="1"> mm
							</div>
						</div>
						<div class="control-group1" style="width: 20%">
							<label class="control-label">材料种类:</label>
							<div class="controls">
								<select class="form-control icate" name="icate[]">
									<option value=''>请选择材料种类</option>
									<volist name="cate_type" id="vo">
										<option value="{$vo.id}" data-stuff_money="{$vo.stuff_money}">{$vo.name}</option>
									</volist>
								</select>
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">数量:</label>
							<div class="controls marleft">
								<input type="text" class="form-control" name="inumber[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">材料价格:</label>
							<div class="controls marleft">
								<input type="text" class="form-control imaterial_price" name="imaterial_price[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">维修单价:</label>
							<div class="controls marleft">
								<input type="text" class="form-control" name="irepair_price[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1"  style="width:12%">
							<label class="control-label inputw">更换单价:</label>
							<div class="controls marleft">
								<input type="text" class="form-control ichange_price" name="ichange_price[]" style="width:100px;" value="1">
							</div>
						</div>
					</div>
					<div class="form-group part_base" style="margin-bottom: -15px !important;" name="base">
						<div class="control-group1" style="width: 22%">
							<label class="control-label">左右内装饰面:</label>
							<input type="hidden" name="iname[]" value="左右内装饰面" >
							<input type="hidden" name="isort[]" value="6" >
							<div class="controls">
								<input type="text" class="form-control minwidth iwidth" name="iwidth[]" placeholder="宽"  value="1">
								<input type="text" class="form-control minwidth iheight" name="iheight[]" placeholder="高"  value="1">
								<input type="text" class="form-control minwidth ithick" name="ithick[]" placeholder="厚"  value="1"> mm
							</div>
						</div>
						<div class="control-group1" style="width: 20%">
							<label class="control-label">材料种类:</label>
							<div class="controls">
								<select class="form-control icate" name="icate[]">
									<option value=''>请选择材料种类</option>
									<volist name="cate_type" id="vo">
										<option value="{$vo.id}" data-stuff_money="{$vo.stuff_money}">{$vo.name}</option>
									</volist>
								</select>
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">数量:</label>
							<div class="controls marleft">
								<input type="text" class="form-control" name="inumber[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">材料价格:</label>
							<div class="controls marleft">
								<input type="text" class="form-control imaterial_price" name="imaterial_price[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">维修单价:</label>
							<div class="controls marleft">
								<input type="text" class="form-control" name="irepair_price[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1"  style="width:12%">
							<label class="control-label inputw">更换单价:</label>
							<div class="controls marleft">
								<input type="text" class="form-control ichange_price" name="ichange_price[]" style="width:100px;" value="1">
							</div>
						</div>
					</div>
					<div class="form-group part_base" style="margin-bottom: -15px !important;" name="base">
						<div class="control-group1" style="width: 22%">
							<label class="control-label">前后内装饰面:</label>
							<input type="hidden" name="iname[]" value="前后内装饰面" >
							<input type="hidden" name="isort[]" value="7" >
							<div class="controls">
								<input type="text" class="form-control minwidth iwidth" name="iwidth[]" placeholder="宽"  value="1">
								<input type="text" class="form-control minwidth iheight" name="iheight[]" placeholder="高"  value="1">
								<input type="text" class="form-control minwidth ithick" name="ithick[]" placeholder="厚"  value="1"> mm
							</div>
						</div>
						<div class="control-group1" style="width: 20%">
							<label class="control-label">材料种类:</label>
							<div class="controls">
								<select class="form-control icate" name="icate[]">
									<option value=''>请选择材料种类</option>
									<volist name="cate_type" id="vo">
										<option value="{$vo.id}" data-stuff_money="{$vo.stuff_money}">{$vo.name}</option>
									</volist>
								</select>
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">数量:</label>
							<div class="controls marleft">
								<input type="text" class="form-control" name="inumber[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">材料价格:</label>
							<div class="controls marleft">
								<input type="text" class="form-control imaterial_price" name="imaterial_price[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">维修单价:</label>
							<div class="controls marleft">
								<input type="text" class="form-control" name="irepair_price[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1"  style="width:12%">
							<label class="control-label inputw">更换单价:</label>
							<div class="controls marleft">
								<input type="text" class="form-control ichange_price" name="ichange_price[]" style="width:100px;" value="1">
							</div>
						</div>
					</div>
					<div class="form-group part_base" style="margin-bottom: -15px !important;" name="base">
						<div class="control-group1" style="width: 22%">
							<label class="control-label">艺术造型:</label>
							<input type="hidden" name="iname[]" value="艺术造型" >
							<input type="hidden" name="isort[]" value="8" >
							<div class="controls">
								<input type="text" class="form-control minwidth iwidth" name="iwidth[]" placeholder="宽"  value="1">
								<input type="text" class="form-control minwidth iheight" name="iheight[]" placeholder="高"  value="1">
								<input type="text" class="form-control minwidth ithick" name="ithick[]" placeholder="厚"  value="1"> mm
							</div>
						</div>
						<div class="control-group1" style="width: 20%">
							<label class="control-label">材料种类:</label>
							<div class="controls">
								<select class="form-control icate" name="icate[]">
									<option value=''>请选择材料种类</option>
									<volist name="cate_type" id="vo">
										<option value="{$vo.id}" data-stuff_money="{$vo.stuff_money}">{$vo.name}</option>
									</volist>
								</select>
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">数量:</label>
							<div class="controls marleft">
								<input type="text" class="form-control" name="inumber[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">材料价格:</label>
							<div class="controls marleft">
								<input type="text" class="form-control imaterial_price" name="imaterial_price[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1" style="width:12%">
							<label class="control-label inputw">维修单价:</label>
							<div class="controls marleft">
								<input type="text" class="form-control" name="irepair_price[]" style="width:100px;" value="1">
							</div>
						</div>
						<div class="control-group1"  style="width:12%">
							<label class="control-label inputw">更换单价:</label>
							<div class="controls marleft">
								<input type="text" class="form-control ichange_price" name="ichange_price[]" style="width:100px;" value="1">
							</div>
						</div>
					</div>
					<div name="base">
						<div class="control-group1" style="width:100%">
							<label class="control-label">有无附件:</label>
							<div class="controls">
								<select class="form-control" name="pro_annex" id="select_fujian">
									<option value="1">有</option>
									<option value="2">无</option>
								</select>
							</div>
						</div>
						<div class="control-group1" name="fujian">
							<label class="control-label">选择附件:</label>
							<div class="controls">
								<select class="form-control" name="annex_id[]">
									<volist name="annex" id="vo">
										<option value="{$vo.id}">{$vo.name}</option>
									</volist>
								</select>
							</div>
						</div>
						<div class="control-group1" name="fujian">
							<label class="control-label">数量:</label>
							<div class="controls">
								<input type="text" class="form-control" name="anumber[]"   value="1">
							</div>
						</div>
						<div class="control-group1" name="fujian" style=" width:50%">
							<div class="btn btn-primary" id="add_fujian">添加附件</div>
						</div>
					</div>

				</div>
			</fieldset>
			<div class="form-actions">
				<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
				<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
			</div>            
		</form>

	</div>
    <script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>
	<script type="text/javascript" src="__STATIC__/js/layer/layer.js"></script>
	<script>
		$(document).ready(function(){
			var json = {$annexJson};
			var html = "";
			$.each(json, function(i, n){
				html += "<option value='"+n.id+"'>"+n.name+"</option>";
			})

			$("#select_fujian").change(function(){
				if($(this).val()==2){
					$("div[name='fujian']").hide();
				}else{
					$("div[name='fujian']").show();
				}
			});

			$(document).on('click','#del_fujian',function(){
				$(this).parents("div[name='d_al']").remove();
			});

			$("#add_fujian").click(function(){
				var str = "";
				str = "<div name='d_al'><div class='control-group1' name='fujian'>" +
							"<label class='control-label'>选择附件:</label>" +
							"<div class='controls'>" +
								"<select class='form-control' name='aname[]'>" ;
								str+=html;
								str+="</select>" +
							"</div>" +
						"</div>" +
						"<div class='control-group1' name='fujian'>" +
							"<label class='control-label'>数量:</label>" +
							"<div class='controls'>" +
							   "<input type='text' class='form-control' name='anumber[]'  value=''>" +
							"</div>" +
						"</div>" +
						"<div class='control-group1' name='fujian' style='width:50%'>" +
							"<div class='btn btn-primary' id='del_fujian'>删除附件</div>" +
						"</div></div>"
				
				$(this).parent("div").after(str);
			})
			// 主要
			// $(document).on('blur',"input[name='imaterial_price[]']",function(){
			// 	var width = $(this).closest("div[name='base']").find("input[name='iwidth[]']").val();
			// 	var height = $(this).closest("div[name='base']").find("input[name='iheight[]']").val();
			// 	var thick = $(this).closest("div[name='base']").find("input[name='ithick[]']").val();
			// 	var material_price = $(this).closest("div[name='base']").find("input[name='imaterial_price[]']").val();
			// 	var change_price = 0;
			// 	if(width != '' && height !='' && thick !='' && material_price != ''){
			// 		change_price = width*height*thick*material_price;
			// 		change_price = change_price.toFixed(2);
			// 	}
			// 	$(this).closest("div[name='base']").find("input[name='ichange_price[]']").val(change_price);
			// });

			$(document).on('blur',".iwidth",function(){
				var obj = $(this).closest('.part_base');
				price_count(obj)
			});
			$(document).on('blur',".iheight",function(){
				var obj = $(this).closest('.part_base');
				price_count(obj)
			});
			$(document).on('blur',".ithick",function(){
				var obj = $(this).closest('.part_base');
				price_count(obj)
			});
			$(document).on('blur',".imaterial_price",function(){
				var obj = $(this).closest('.part_base');
				price_count(obj)
			});
			// 主要
			$(document).on('change',".icate",function(){
				var obj = $(this).closest('.part_base');
				var stuff_money = obj.find('.icate').children('option:selected').data('stuff_money');
				obj.find('.imaterial_price').val(stuff_money)
				price_count(obj)
			});
			var price_count = function(obj){
				var iwidth = obj.find('.iwidth').val()/1000,
						iheight = obj.find('.iheight').val()/1000,
						ithick = obj.find('.ithick').val()/1000,
						imaterial_price =  obj.find('.imaterial_price').val();
				console.log(iwidth)
				console.log(iheight)
				console.log(ithick)
				var change_price = 0;
				if(iwidth != '' && iheight !='' && ithick !=''  && imaterial_price != ''){
					change_price = iwidth*iheight*ithick*imaterial_price;
					change_price = change_price.toFixed(2);
				}
				obj.find(".ichange_price").val(change_price);
			};
		})
	</script>
